<template>
  <div class="error-page">
    <div class="error-content">
      <h1 class="error-code">404</h1>
      <h2 class="error-title">页面不存在</h2>
      <p class="error-description">抱歉，您访问的页面不存在或已被移除</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goHome = () => {
  router.push('/')
}
</script>

<style lang="scss" scoped>
.error-page {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
}

.error-content {
  text-align: center;
  padding: 40px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  
  .error-code {
    font-size: 120px;
    color: #409EFF;
    margin: 0;
    line-height: 1.2;
  }
  
  .error-title {
    font-size: 28px;
    color: #303133;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  .error-description {
    font-size: 16px;
    color: #606266;
    margin-bottom: 30px;
  }
}
</style> 